<!-- 
<div id="pMenu">
<?php // print $this->navigation()->menu()->render(); ?>
</div>
-->

<ul id="mainNav">
	<?php foreach ($this->sidebar as $entry): ?>
	<li class="nav">
		<span class="<?php print !empty($entry['icon']) ? $entry['icon'] : 'icon-document-alt-stroke' ?>"></span>
		<a class="<?php print $entry['class'] ?>" href="<?php print !empty($entry['pages']) ? 'javascript:;' : $entry['uri'] ?>"><?php print $entry['label'] ?></a>
		
		<?php if (!empty($entry['pages'])): ?>
			<ul class="subNav">
			<?php foreach ($entry['pages'] as $sub): ?>
				<li><a  class="<?php print $sub['class'] ?>" href="<?php print !empty($sub['pages']) ? 'javascript:;' : $sub['uri'] ?>"><?php print $sub['label'] ?></a></li>
			<?php endforeach; ?>
			</ul>
		<?php endif; ?>

	</li>
	<?php endforeach;?>
	
	<li class="nav"><p>&nbsp;</p></li>
	
	<li class="nav">
		<span class="icon-plus"></span>
		<a class="" href="javascript:;">Nuova</a>
		<ul class="subNav">
			<li><a class="" href="javascript:void(0);">Crea una nuova simulazione</a></li>
		</ul>
	</li>
	<li class="nav">
		<span class="icon-cog-alt"></span>
		<a class="" href="javascript:;">Salva</a>
		<ul class="subNav">
			<li><a id="X-sim-save">Salva i dati della simulazione</a></li>
		</ul>
		
	</li>
	<li class="nav">
		<span class="icon-document-stroke"></span>
		<a class="" href="javascript:;">Chiudi</a>
		<ul class="subNav">
			<li><a class="" href="javascript:void(0);">Annulla le modifiche e torna a Gestione Simulazioni</a></li>
		</ul>
	</li>
	
	
</ul>
